package com._520it.crm.mapper;

import com._520it.crm.domain.Coefficient;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CoefficientMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Coefficient record);

    Coefficient selectByPrimaryKey(Long id);

    List<Coefficient> selectAll();

    int updateByPrimaryKey(Coefficient record);

    List<Coefficient> selectPage(@Param("current") int current,
                                 @Param("size") int size,
                                 @Param("exemptFloat") String exemptFloat,
                                 @Param("roadAccident") String roadAccident,
                                 @Param("unlawfulAct") String unlawfulAct,
                                 @Param("drinkAct") Integer drinkAct,
                                 @Param("ebrietyAct") Integer ebrietyAct
                               );

    int selectPageCount(@Param("exemptFloat") String exemptFloat,
                        @Param("roadAccident") String roadAccident,
                        @Param("unlawfulAct") String unlawfulAct,
                        @Param("drinkAct") Integer drinkAct,
                        @Param("ebrietyAct") Integer ebrietyAct
    );
}
